using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TriaServer.Model;
using TriaServer.Service;
using Leeder.Business;

namespace TriaServer.Business
{
    /// <summary>
    /// 
    /// </summary>
   public class CarModelBLL : BaseBLL<CarModelModel, CarModelService>
   {
        public CarModelBLL()
        {
            Service = new CarModelService();
        }
        public CarModelModel GetCarModelByCondition(string code)
        {
            return Service.Query(p => p.BarCodeTag == code && (p.IsPhantom != true || p.IsPhantom == null)).ActivedObj.FirstOrDefault();
        }
    }
}
